package com.ruoyi.project.paea.signaturelog.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.paea.signaturelog.mapper.PaeaParaRizedSignatureLogMapper;
import com.ruoyi.project.paea.signaturelog.domain.PaeaParaRizedSignatureLog;
import com.ruoyi.project.paea.signaturelog.service.IPaeaParaRizedSignatureLogService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 有权人操作日志Service业务层处理
 *
 * @author gang.wei
 * @date 2020-05-01
 */
@Service
public class PaeaParaRizedSignatureLogServiceImpl extends ServiceImpl<PaeaParaRizedSignatureLogMapper, PaeaParaRizedSignatureLog> implements IPaeaParaRizedSignatureLogService
{
    @Autowired
    private PaeaParaRizedSignatureLogMapper paeaParaRizedSignatureLogMapper;

    /**
     * 查询有权人操作日志
     *
     * @param id 有权人操作日志ID
     * @return 有权人操作日志
     */
    @Override
    public PaeaParaRizedSignatureLog selectPaeaParaRizedSignatureLogById(String id)
    {
        return paeaParaRizedSignatureLogMapper.selectPaeaParaRizedSignatureLogById(id);
    }

    /**
     * 查询有权人操作日志列表
     *
     * @param paeaParaRizedSignatureLog 有权人操作日志
     * @return 有权人操作日志
     */
    @Override
    public List<PaeaParaRizedSignatureLog> selectPaeaParaRizedSignatureLogList(PaeaParaRizedSignatureLog paeaParaRizedSignatureLog)
    {
        return paeaParaRizedSignatureLogMapper.selectPaeaParaRizedSignatureLogList(paeaParaRizedSignatureLog);
    }

    /**
     * 新增有权人操作日志
     *
     * @param paeaParaRizedSignatureLog 有权人操作日志
     * @return 结果
     */
    @Override
    public int insertPaeaParaRizedSignatureLog(PaeaParaRizedSignatureLog paeaParaRizedSignatureLog)
    {
        return paeaParaRizedSignatureLogMapper.insertPaeaParaRizedSignatureLog(paeaParaRizedSignatureLog);
    }

    /**
     * 修改有权人操作日志
     *
     * @param paeaParaRizedSignatureLog 有权人操作日志
     * @return 结果
     */
    @Override
    public int updatePaeaParaRizedSignatureLog(PaeaParaRizedSignatureLog paeaParaRizedSignatureLog)
    {
        return paeaParaRizedSignatureLogMapper.updatePaeaParaRizedSignatureLog(paeaParaRizedSignatureLog);
    }

    /**
     * 删除有权人操作日志对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePaeaParaRizedSignatureLogByIds(String ids)
    {
        return paeaParaRizedSignatureLogMapper.deletePaeaParaRizedSignatureLogByIds(Convert.toStrArray(ids));
    }

    @Override
    public int deletePaeaParaRizedSignatureLogBySignatureIds(String signatureIds) {
        return paeaParaRizedSignatureLogMapper.deletePaeaParaRizedSignatureLogBySignatureIds(Convert.toStrArray(signatureIds));
    }

    /**
     * 删除有权人操作日志信息
     *
     * @param id 有权人操作日志ID
     * @return 结果
     */
    @Override
    public int deletePaeaParaRizedSignatureLogById(String id)
    {
        return paeaParaRizedSignatureLogMapper.deletePaeaParaRizedSignatureLogById(id);
    }

    @Override
    public List<PaeaParaRizedSignatureLog> querySignaturelogsBySignatureId(String signatureId) {
        PaeaParaRizedSignatureLog paeaParaRizedSignatureLog = new PaeaParaRizedSignatureLog();
        paeaParaRizedSignatureLog.setSignatureId(signatureId);
        return paeaParaRizedSignatureLogMapper.selectPaeaParaRizedSignatureLogList(paeaParaRizedSignatureLog);
    }
}
